/*
 * @描述信息: 系统管理
 * @Author:
 */

import http from '@/http/http'

// 机构管理
export const departmentList = (obj: object) => http.get('/api/department/list', obj) // 获取机构管理列表
export const departmentParent = (obj: object) => http.get('/api/department/parent', obj) // 查询上级部门树
export const departmentAdd = (obj: object) => http.post('/api/department', obj) // 新增
export const departmentEdit = (obj: object) => http.put('/api/department', obj) // 编辑
export const departmentDelete = (id: number) => http.delete(`/api/department/${id}`) // 删除
